﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Net.Sockets;
using System.Threading;

namespace AlgoLogicMessengerCompetitor
{
    //Interaction logic for MainWindow.xaml
    public partial class MainWindow : Window
    {
        //sockets
        System.Net.Sockets.TcpClient clientSocket = new System.Net.Sockets.TcpClient();
        NetworkStream serverStream = default(NetworkStream);
        LogIn a = new LogIn();

        public MainWindow()
        {
            InitializeComponent();
            frame1.NavigationService.Navigate(a);
            SplashDemo.Splasher.CloseSplash();
        }

        private void btnMini_Click(object sender, RoutedEventArgs e)
        {
            Window w = Application.Current.MainWindow;
            w.Activate();

            if (w.WindowState == WindowState.Normal)
            {
                w.WindowState = WindowState.Minimized;
            }
        }
    }
}
